const { exec, escape } = require("../db/mysql");


const login = (postData) => {
    let { username, password } = postData;
    username = escape(username);
    password = escape(password);

    let sql = `select * from user where username=${username} and password=${password}`;
    return exec(sql);
}

module.exports = {
    login
}
